﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WuzzMonk.GUI
{
    public partial class SettingsForm : Form
    {
        public SettingsForm()
        {
            InitializeComponent();
            this.Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath);
        }

        private void SettingsForm_Load(object sender, EventArgs e)
        {
            if (!WuzzMonk.BotSettings.BotMovement)
                checkDisableMovement.Checked = true;

            if (!WuzzMonk.BotSettings.BotProvoke)
                checkDisableProvoke.Checked = true;
            if (!WuzzMonk.BotSettings.BotRoll)
                checkDisableRoll.Checked = true;

            if (!WuzzMonk.BotSettings.BotAOE)
                checkDisableAOE.Checked = true;
        }

        private void checkDisableMovement_CheckedChanged(object sender, EventArgs e)
        {
            if (checkDisableMovement.Checked)
                WuzzMonk.BotSettings.BotMovement = false;
            else
                WuzzMonk.BotSettings.BotMovement = true;
        }

        private void checkDisableProvoke_CheckedChanged(object sender, EventArgs e)
        {
            if (checkDisableProvoke.Checked)
                WuzzMonk.BotSettings.BotProvoke = false;
            else
                WuzzMonk.BotSettings.BotProvoke = true;
        }

        private void checkDisableRoll_CheckedChanged(object sender, EventArgs e)
        {
            if (checkDisableRoll.Checked)
                WuzzMonk.BotSettings.BotRoll = false;
            else
                WuzzMonk.BotSettings.BotRoll = true;
        }

        private void checkDisableAOE_CheckedChanged(object sender, EventArgs e)
        {
            if (checkDisableAOE.Checked)
                WuzzMonk.BotSettings.BotAOE = false;
            else
                WuzzMonk.BotSettings.BotAOE = true;
        }
    }
}
